<?php

namespace App\Models\Recommend;

use Eloquent as Model;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * Class Reccat
 * @package App\Models\Recommend
 * @version July 31, 2018, 10:30 am CST
 *
 * @property string name
 * @property string title
 * @property string lab
 * @property string datasrc
 * @property string description
 */
class Reccat extends Model
{
    use SoftDeletes;


    public $table = 'reccats';
    

    protected $dates = ['deleted_at'];


    public $fillable = [
        'name',
        'title',
        'lab',
        'datasrc',
        'description'
    ];

    /**
     * The attributes that should be casted to native types.
     *
     * @var array
     */
    protected $casts = [
        'name' => 'string',
        'title' => 'string',
        'lab' => 'string',
        'datasrc' => 'string',
        'description' => 'string'
    ];

    /**
     * Validation rules
     *
     * @var array
     */
    public static $rules = [
        'name' => 'required|max:100'
    ];

    
}
